// 导入静态路由
// import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state: {
    menuList: []
    // 先以静态路由作为菜单数据的初始值
    // menuList: [...constantRoutes]
  },
  mutations: {
    updateMenus(state, asyncRoutes) {
      state.menuList = asyncRoutes
      // state.menuList = [...constantRoutes, ...asyncRoutes]
    }
  }
}

